package com.itqf.di;

import java.util.*;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/9/28
 * @Time: 上午9:25
 */
public class MyContainer {

    public  MyContainer(){
        System.out.println("init Spring~~!!");
    }

    private int age;
    private String name;
    private Date  birthday;



    private Student student;//最常见

    private Set<String> set;
    private List<String> list;

    private Map<String,String> map;

    private Properties properties;//会用到

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Date getBirthday() {
        return birthday;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public Set<String> getSet() {
        return set;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public Properties getProperties() {
        return properties;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    @Override
    public String toString() {
        return "MyContainer{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", student=" + student +
                ", set=" + set +
                ", list=" + list +
                ", birthday=" + birthday +
                ", map=" + map +
                ", properties=" + properties +
                '}';
    }
}
